<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "home";
$route['404_override'] = 'news/detail_news';

/*
//$route['^vang/(.+)$/(.+)$/(.+)$/'] = "new/content/(.+)$1";
$route['^tin-tuc'] = "news";
$route['^tin-tuc/vang'] = "news/content/vang";
$route['^tin-tuc/vang/(.+)$/'] = "news/content/vang/(.+)$1";
$route['^tin-tuc/vang/(.+)$/(.+)$/'] = "news/content/vang/$1/$2";
$route['^tin-tuc/ngoai-hoi/(.+)$/(.+)$'] = "about/content/$1/$2";
*/

//$route['(:any)'] = "news/my";

$route['tag/(.+)$'] = "news/tag/$1";
$route['tag/(.+)$/(.+)$/'] = "news/tag/$1/$2";

$route['tim-kiem'] = "seach";
$route['tim-kiem/(.+)$'] = "seach/index/$1";
$route['tim-kiem/(.+)$/(.+)$/'] = "search/index/$1/$2";

$route['thong-tin-ig'] = "news/content/thong-tin-ig";
$route['thong-tin-ig/chi-tiet/(:num)'] = "news/detail/thong-tin-ig/$1";
$route['thong-tin-ig/(.+)$'] = "news/content/thong-tin-ig/$1";
$route['thong-tin-ig/(.+)$/(.+)$/(.+)$'] = "news/content/thong-tin-ig/$1/$2/$3";

$route['vang'] = "news/content/vang";
$route['vang/chi-tiet/(:num)'] = "news/detail/vang/$1";
$route['vang/(.+)$'] = "news/content/vang/$1";
$route['vang/(.+)$/(.+)$/(.+)$'] = "news/content/vang/$1/$2/$3";

$route['kinh-te-viet-nam'] = "news/content/kinh-te-viet-nam";
$route['kinh-te-viet-nam/chi-tiet/(:num)'] = "news/detail/kinh-te-viet-nam/$1";
$route['kinh-te-viet-nam/(.+)$'] = "news/content/kinh-te-viet-nam/$1";
$route['kinh-te-viet-nam/(.+)$/(.+)$/(.+)$'] = "news/content/kinh-te-viet-nam/$1/$2/$3";

$route['kinh-te-the-gioi'] = "news/content/kinh-te-the-gioi";
$route['kinh-te-the-gioi/chi-tiet/(:num)'] = "news/detail/kinh-te-the-gioi/$1";
$route['kinh-te-the-gioi/(.+)$'] = "news/content/kinh-te-the-gioi/$1";
$route['kinh-te-the-gioi/(.+)$/(.+)$/(.+)$'] = "news/content/kinh-te-the-gioi/$1/$2/$3";

$route['ngoai-te'] = "news/content/ngoai-te";
$route['ngoai-te/chi-tiet/(:num)'] = "news/detail/ngoai-te/$1";
$route['ngoai-te/(.+)$'] = "news/content/ngoai-te/$1";
$route['ngoai-te/(.+)$/(.+)$/(.+)$'] = "news/content/ngoai-te/$1/$2/$3";

$route['chung-khoan'] = "news/content/chung-khoan";
$route['chung-khoan/chi-tiet/(:num)'] = "news/detail/chung-khoan/$1";
$route['chung-khoan/(.+)$'] = "news/content/chung-khoan/$1";
$route['chung-khoan/(.+)$/(.+)$/(.+)$'] = "news/content/chung-khoan/$1/$2/$3";

$route['kien-thuc-va-kinh-nghiem'] = "news/content/kien-thuc-va-kinh-nghiem";
$route['kien-thuc-va-kinh-nghiem/chi-tiet/(:num)'] = "news/detail/kien-thuc-va-kinh-nghiem/$1";
$route['kien-thuc-va-kinh-nghiem/(.+)$'] = "news/content/kien-thuc-va-kinh-nghiem/$1";
$route['kien-thuc-va-kinh-nghiem/(.+)$/(.+)$/(.+)$'] = "news/content/kien-thuc-va-kinh-nghiem/$1/$2/$3";

$route['hoi-va-dap'] = "news/content/hoi-va-dap";
$route['hoi-va-dap/chi-tiet/(:num)'] = "news/detail/hoi-va-dap/$1";
$route['hoi-va-dap/(.+)$'] = "news/content/hoi-va-dap/$1";
$route['hoi-va-dap/(.+)$/(.+)$/(.+)$'] = "news/content/hoi-va-dap/$1/$2/$3";

$route['bat-dong-san'] = "news/content/bat-dong-san";
$route['bat-dong-san/chi-tiet/(:num)'] = "news/detail/bat-dong-san/$1";
$route['bat-dong-san/(.+)$'] = "news/content/bat-dong-san/$1";
$route['bat-dong-san/(.+)$/(.+)$/(.+)$'] = "news/content/bat-dong-san/$1/$2/$3";

$route['tin-thi-truong'] = "news/content/vang";
$route['tin-thi-truong/chi-tiet/(:num)'] = "news/detail/vang/$1";
$route['tin-thi-truong/(.+)$'] = "news/content/vang/$1";
$route['tin-thi-truong/(.+)$/(.+)$/(.+)$'] = "news/content/vang/$1/$2/$3";

$route['tin-noi-bo'] = "news/content/tin-noi-bo";
$route['tin-noi-bo/chi-tiet/(:num)'] = "news/detail/tin-noi-bo/$1";
$route['tin-noi-bo/(.+)$'] = "news/content/tin-noi-bo/$1";
$route['tin-noi-bo/(.+)$/(.+)$/(.+)$'] = "news/content/tin-noi-bo/$1/$2/$3";

$route['welcome-customer'] = "welcome";
//$route['welcome-customer/(.+)$/(.+)$/(.+)$'] = "welcome/$1/$2/$3";

/* End of file routes.php */
/* Location: ./application/config/routes.php */